A Fast Algorithm for Computing Binomial Coefficients Modulo Powers of Two

نویسنده

  • Mugurel Ionut Andreica
چکیده

I present a new algorithm for computing binomial coefficients modulo 2N. The proposed method has an O(N3·Multiplication(N)+N4) preprocessing time, after which a binomial coefficient C(P, Q) with 0≤Q≤P≤2N-1 can be computed modulo 2N in O(N2·log(N)·Multiplication(N)) time. Multiplication(N) denotes the time complexity of multiplying two N-bit numbers, which can range from O(N2) to O(N·log(N)·log(log(N))) or better. Thus, the overall time complexity for evaluating M binomial coefficients C(P, Q) modulo 2N with 0≤Q≤P≤2N-1 is O((N3+M·N2·log(N))·Multiplication(N)+N4). After preprocessing, we can actually compute binomial coefficients modulo any 2R with R≤N. For larger values of P and Q, variations of Lucas' theorem must be used first in order to reduce the computation to the evaluation of multiple (O(log(P))) binomial coefficients C(P', Q') (or restricted types of factorials P'!) modulo 2N with 0≤Q'≤P'≤2N-1.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

On Divisibility Properties of Some Differences of the Central Binomial Coefficients and Catalan Numbers

We discuss divisibility properties of some differences of the central binomial coefficients and Catalan numbers. The main tool is the application of various congruences modulo high prime powers for binomial coefficients combined with some recurrence relevant to these combinatorial quantities.

متن کامل

Integrality of Open Instantons Numbers

We prove the integrality of the open instanton numbers in two examples of counting holomorphic disks on local Calabi-Yau threefolds: the resolved conifold and the degenerate P × P. Given the B-model superpotential, we extract by hand all Gromow-Witten invariants in the expansion of the A-model superpotential. The proof of their integrality relies on enticing congruences of binomial coefficients...

متن کامل

Statement Julian

My mathematical research interests are in number theory and algebraic geometry. My thesis work concerns the arithmetic of a family of rational numbers known as multiple harmonic sums, which are truncated approximations of multiple zeta values. I explore new structures underlying relations involving multiple harmonic sums, p-adic L-values, Bernoulli numbers, and binomial coefficients. This is us...

متن کامل

Binomial Thue equations and polynomial powers

We explicitly solve a collection of binomial Thue equations with unknown degree and unknown S-unit coefficients, for a number of sets S of small cardinality. Equivalently, we characterize integers x such that the polynomial x2 + x assumes perfect power values, modulo S-units. These results are proved through a combination of techniques, including Frey curves and associated modular forms, lower ...

متن کامل

Binomial and factorial congruences for Fq[t]

We present several elementary theorems, observations and questions related to the theme of congruences satisfied by binomial coefficients and factorials modulo primes (or prime powers) in the setting of polynomial ring over a finite field. When we look at the factorial of n or the binomial coefficient ‘n choose m’ in this setting, though the values are in a function field, n and m can be usual ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره 2013  شماره 

صفحات  -

تاریخ انتشار 2013